import request from '@/utils/axios'


export function addproduct(params) {
    return request({
        url: '/product/add',
        method: 'post',
        data: params
    })
}

export function deleteproduct(params) {
    return request({
        url: '/product/delete',
        method: 'post',
        data: params
    })
}
export function eupdateProduct(params) {
    return request({
        url: '/product/update',
        method: 'post',
        data: params
    })
}

export function productSearch(params) {
    return request({
        url: 'product/search',
        method: 'post',
        data: params
    })
}

export function productlist(params) {
    return request({
        url: '/product/list',
        method: 'post',
        data: params
    })
}
export function productdelete(params) {
    return request({
        url: '/product/delete',
        method: 'post',
        data: params
    })
}
export function productInsert(params) {
    return request({
        url: '/product/insert',
        method: 'post',
        data: params
    })
}
export function productUpdate(params) {
    return request({
        url: '/product/update',
        method: 'post',
        data: params
    })
}
export function categraylist(params) {
    return request({
        url: '/categray/list',
        method: 'post',
        data: params
    })
}
export function categrayadd(params) {
    return request({
        url: '/categray/insert',
        method: 'post',
        data: params
    })
}
export function categrayupdate(params) {
    return request({
        url: '/categray/update',
        method: 'post',
        data: params
    })
}
export function categraydelete(params) {
    return request({
        url: '/categray/delete',
        method: 'post',
        data: params
    })
}
export function uploadImage(params) {
    return request({
        url: '/upload',
        method: 'post',
        data: params
    })
}

